package com.bedrock.project.inside.entity;

import com.bedrock.framework.aspectj.lang.annotation.Excel;
import com.bedrock.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 项目成员关联表对象 project_user_info
 * 
 * @author bedrock
 * @date 2020-04-08
 */
@Data
public class ProjectUserInfo
{
    private static final long serialVersionUID = 1L;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 成员id */
    @Excel(name = "成员id")
    private Long userId;

    /** 成员账号 */
    @Excel(name = "成员账号")
    private String userName;

    /** 成员姓名 */
    @Excel(name = "成员姓名")
    private String nickName;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("projectId", getProjectId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .toString();
    }
}
